import { createStore } from 'vuex'
import core from '@/store/modules/core'
import user from '@/store/modules/user'

export default createStore({
  // 持久化
  // plugins: [persistence({
  //   storage: window.sessionStorage,
  //   reducer(val: any) {
  //     return {
  //       // 需要储存的数据
  //       user: val.user
  //     }
  //   }
  // })],
  // 模块化
  modules: {
    core: core,
    user
  },
  state: {

  },
  mutations: {

  },
  actions: {

  }
})
